file chooser: Don't open folders unexpectedly
authorMatthias Clasen <mclasen@redhat.com>
Sat, 14 Feb 2015 01:43:06 +0000 (20:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 Feb 2015 06:03:38 +0000 (01:03 -0500)
commit61012f3efea3f06bb6dd38bed1988dab6aaad387
tree63616ec111b7e46366c85553cf340ff1db086a3b
parenta34a0224e4fc6eff35fd41b7f318517b20b95713
file chooser: Don't open folders unexpectedly

Folders that show up among search results were unexpectedly
returned even for GTK_FILE_CHOOSER_ACTION_OPEN. Change things
around so that we switch to the folder instead, which is the
behavior we had in GTK+ 2.x.

https://bugzilla.gnome.org/show_bug.cgi?id=744204
gtk/gtkfilechooserwidget.c